<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
<title>上传文件</title>
    <style>
        #main{margin:0 auto; width: 500px;}
        dl{clear: both; width: 100%;}
        dt{
            float: left;
            width: 100px;
            text-align: right;
        }
    </style>

</head>

<body>
<div id="main">
    <dl id="upload">
        <dt>文件路径：</dt>
        <dd><input name="fileImages" type="file" /></dd>
    </dl>
    <div id="addBtn"><input id="up" type="button" value="再上传一个文件"  onmousedown="add()"/></div>
</div>
<script type="text/javascript">
function	add(){
	var dl=document.getElementById("upload");
var dl1=dl.cloneNode(true);
document.getElementById("main").insertBefore(dl1,document.getElementById("main").firstElementChild);
}
</script>
</body>
</html>
